home *** CD-ROM | disk | FTP | other *** search
- class classes.fx.EnemySoul
- {
- var id;
- var x;
- var y;
- var color;
- var clip;
- var yMov;
- var xMov = 0;
- var speed = 4;
- var Name = "enemySoul";
- function EnemySoul(px, py, pcolor, pid)
- {
- this.id = pid;
- this.x = px;
- this.y = py;
- this.color = pcolor;
- _root.d = _root.d + 1;
- this.clip = _root.attachMovie("enemySoul","enemySoul" + this.id + "Clip",_root.d);
- this.clip._x = this.x;
- this.clip._y = this.y;
- var _loc3_ = random(2) + 1;
- this.clip.gotoAndPlay(this.color + _loc3_);
- this.yMov = -1 * _root.randRange2(1,3) * _loc3_;
- this.clip._alpha = _root.randRange(35,65);
- }
- function main()
- {
- if(this.y < -5 || this.clip.end)
- {
- _root.removeFX("enemySoul" + this.id);
- }
- this.y += this.yMov;
- this.clip._y = this.y;
- }
- }
-